//
//  JJRoundProgressVc.m
//  MyAnimations
//
//  Created by jxf on 16/2/19.
//  Copyright © 2016年 JJ.sevn. All rights reserved.
//

#import "JJRoundProgressVc.h"
#import "JJProgressRateRoundView.h"

@interface JJRoundProgressVc ()
@property (weak, nonatomic) IBOutlet UISlider *slider;
// 代码创建
@property(nonatomic, weak) JJProgressRateRoundView * vv;
// xib创建
@property (weak, nonatomic) IBOutlet JJProgressRateRoundView *xibView;

@end

@implementation JJRoundProgressVc

- (void)viewDidLoad {
    [super viewDidLoad];
    JJProgressRateRoundView *vv = [JJProgressRateRoundView progressRateRoundViewWithType:kJJProgressRateRoundViewFill];
    vv.frame = CGRectMake(200, 300, 50, 50);
    [self.view addSubview:vv];
    self.vv = vv;
    
    self.xibView.progressRateRoundViewtype = kJJProgressRateRoundViewStroke;
    // Do any additional setup after loading the view, typically from a nib.
}
- (IBAction)sliderChangeValue:(UISlider *)sender {
    self.vv.progressValue = sender.value;
    self.xibView.progressValue = sender.value;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
    // Dispose of any resources that can be recreated.
}


@end
